//
//  YDYFriendsViewController.m
//  DYSisterAPP
//
//  Created by 杨德勇 on 16/7/26.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "YDYFriendsViewController.h"
#import "YDYRecommandFriendsViewController.h"
#import "YDYLoginViewController.h"
@interface YDYFriendsViewController ()

@end

@implementation YDYFriendsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupNavigationBarItems];
}

-(void)setupNavigationBarItems{
    
    self.navigationItem.title = @"我的朋友们～";
    
    self.navigationItem.leftBarButtonItem = [YDYUIBarButtonItemManager ydy_itemWithImgName:@"friendsRecommentIcon" selectImgName:@"friendsRecommentIcon-click" target:self action:@selector(friendsRecommentIconDidClick)];
}

-(void)friendsRecommentIconDidClick{
    
    YDYRecommandFriendsViewController *vc = [[YDYRecommandFriendsViewController alloc]init];
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
    
}

- (IBAction)Login:(id)sender {
    YDYLoginViewController *loginVc = [[YDYLoginViewController alloc]init];
    [self presentViewController:loginVc animated:YES completion:^{
        
    }];
}


@end
